<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page
	import="org.springside.modules.security.springsecurity.SpringSecurityUtils"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>关键字管理</title>
		<link href="${ctx}/css/jehoo.css" rel="stylesheet" type="text/css" />
		<link href="${ctx}/css/colorbox.css" rel="stylesheet" type="text/css" />
		<script src="${ctx}/js/jquery.js" type="text/javascript" ></script>
		<script src="${ctx}/js/jquery.colorbox.js" type="text/javascript" ></script>
		<script src="${ctx}/js/table.js" type="text/javascript"></script>
		<script>
$(document).ready(function() {
	//Examples of how to assign the ColorBox event to elements			
		//$("#keyword_btn").colorbox({iframe:true, width:"80%", height:"80%",href:"/keyword/keyword!input.action"});	
		$("#keyword_btn").click(function() {
			window.location.href = "${ctx}/keyword/keyword!input.action";
			return false;
		});
	});
</script>
	</head>
	<body>
		<div id="body" class="cb" align="center">
			<div id="main" align="center">
				<div id="keyword_banner">
					<div id="keyword_buttons">
						<input type="button" id="keyword_btn" value="添加关键词" />
					</div>
				</div>
				<s:if test="hasActionMessages()">
						<s:actionmessage theme="custom" cssClass="success" />
				</s:if>

				<div id="keyword_tips">
					<span class="arrow2"></span>
					<span>您可以删除、修改和增加关键词。关键词新增或修改后需要一天审核时间才能生效。</span>
					<span class="arrow2"></span>
					<span><a href="">关键词组合设置技巧</a> </span>
				</div>
				<form id="mainForm" action="${ctx}/keyword/keyword.action" method="get">
					<input type="hidden" name="page.pageNo" id="pageNo"
						value="${page.pageNo}" />
					<input type="hidden" name="page.orderBy" id="orderBy"
						value="${page.orderBy}" />
					<input type="hidden" name="page.order" id="order"
						value="${page.order}" />
					<div id="keyword_list">
						<div id="list_field">
							<span id="list_number">序号</span>
							<span id="list_keyword">关键词</span>
							<span id="list_keyword_level">关键词级别</span>
							<span id="list_operation">操作</span>
						</div>

						<s:iterator status="spin" value="page.result">

							<div id="list_txt">
								<span id="list_number_txt"><s:property
										value="#spin.count+((page.pageNo-1)*10)" /> </span>
								<span id="list_keyword_txt">${words}</span>
								<span id="list_keyword_level_txt">${actionLevel}</span>
								<span id="list_operation_txt"> <span><a
										href="${ctx}/keyword/keyword!input.action?id=${id}">编辑</a> </span><span>|</span><span><a
										href="${ctx}/keyword/keyword!delete.action?id=${id}">删除</a> </span> </span>
							</div>
						</s:iterator>
					</div>
					<div id="keyword_pagebar">
						<span class="page_indicator"><a
							href="javascript:jumpPage(${page.totalPages})">末页</a> </span>
						<s:if test="page.hasNext">
							<span class="page_indicator"><a
								href="javascript:jumpPage(${page.nextPage})">下一页</a> </span>
						</s:if>
						<span id="page_number">${page.pageNo}</span>
						<s:if test="page.hasPre">
							<span class="page_indicator"><a
								href="javascript:jumpPage(${page.prePage})">上一页</a> </span>
						</s:if>
						<span class="page_indicator"><a
							href="javascript:jumpPage(1)">首页</a> </span>
						<span class="page_indicator">${page.pageNo}/${page.totalPages}</span>

					</div>
				</form>
			</div>
		</div>
	</body>
</html>